const { fork } = require("child_process");

const forked = fork("child.js");
console.log(`parent process pid ${process.pid}`);
forked.on("message", (msg) => {
  console.log("Message from child", msg);
});

forked.send({ hello: "world" });
